change error messages in validate_evernote_options

Ben Cornelis 8 years ago
parent
commit
cecce25484
2 changed files with 1 additions and 6 deletions
  1. 0 1
      .env.example
  2. 1 5
      app/concerns/evernote_concern.rb

+ 0 - 1
.env.example

@@ -110,7 +110,6 @@ WUNDERLIST_OAUTH_SECRET=
110 110
 
111 111
 EVERNOTE_OAUTH_KEY=
112 112
 EVERNOTE_OAUTH_SECRET=
113
-# Set to true in development, false in production
114 113
 USE_EVERNOTE_SANDBOX=true
115 114
 
116 115
 #############################

+ 1 - 5
app/concerns/evernote_concern.rb

@@ -30,7 +30,7 @@ module EvernoteConcern
30 30
     unless evernote_consumer_key.present? &&
31 31
       evernote_consumer_secret.present? &&
32 32
       evernote_oauth_token.present?
33
-      errors.add(:base, "Evernote consumer_key, consumer_secret, oauth_token, and oauth_token_secret are required to authenticate with the Evernote API.  You can provide these as options to this Agent, or as Credentials with the same names, but starting with 'evernote_'.")
33
+      errors.add(:base, "Evernote ENV variables and a Service are required")
34 34
     end
35 35
   end
36 36
 
@@ -45,8 +45,4 @@ module EvernoteConcern
45 45
   def evernote_oauth_token
46 46
     service && service.token
47 47
   end
48
-
49
-  def evernote_oauth_token_secret
50
-    service && service.secret
51
-  end
52 48
 end